package com.yubest.demo.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @Author hweiyu
 * @Description
 * @Date 2021/3/1 14:01
 */
@Data
public class DemoDTO implements Serializable {

    private static final long serialVersionUID = 1019466745376831818L;

    @NotNull(message = "字段a不允许为空")
    private Integer a;

    @NotBlank(message = "字段b不允许为空")
    private String b;

}
